#ifndef CMENU_H
#define CMENU_H

#include "Main.h"
#include "MenuItems.h"
#include "Sprite.h"

//typedef bool MenuItemList[MenuItems::MenuItemLen + 1];
typedef int  MenuItem;
class CMenu
{
public:
	CMenu(HINSTANCE hInstance, HDC hdcSprite);
	~CMenu();

	void Disable();
	void Enable();

	bool IsEnabled();

	MenuItem CurrentItemSelected();
	void NextMenuItem(float time);
	void PreviousMenuItem(float time);
	void Update(HDC hdcFrameBuffer);

	Sprite * GetMenuItem(MenuItem nItem);

	void Deinit();

private:
	void Draw(HDC hdcFrameBuffer);
	void UpdateSelector();

	float		 m_nLastTimeChanged;
	bool		 m_bEnabled;
	MenuItem     m_currentItemSelected;
	Sprite*		 m_pBackground;
	Sprite*		 m_pStartGameButton;
	Sprite*		 m_pSettingsButton;
	Sprite*		 m_pHowToButton;
	Sprite*		 m_pHighScoresButton;
	Sprite*		 m_pSelectorRight;
	Sprite*		 m_pSelectorLeft;
	HDC			 m_hdcSprite;
	
	//MenuItemList m_itemIsSelected;




};


#endif